package com.sunny.springboot2.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

/**
 * @author sunny
 * @date 2018/11/30
 */
@RestController
@RequestMapping("/noPer/webflux")
public class WebfluxController {

    @GetMapping("/hello")
    public Mono<String> hello() {
        return Mono.just("Hello Webflux!!");
    }
}
